﻿using System.Windows;
using System.Windows.Input;

namespace ConditionTreeTestStand
{
  public partial class SelectGenresView
  {
    public SelectGenresView()
    {
      InitializeComponent();
    }

    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
      this.OffsetPosition((Vector)Mouse.GetPosition(this) + new Vector(0, 20));
    }
  }
  public static class Utils
  {
    public static void OffsetPosition(this Window element, Vector v)
    {
      element.Left += v.X;
      element.Top += v.Y;
    }
  }
}
